#ifndef GL_BUFFER_MANAGER_H
#define GL_BUFFER_MANAGER_H

#include<map>
#include<string>



//singleton pattern
class GLBufferManager
{
public:
   static GLBufferManager* GetSingleton(void);

   unsigned int CreateGLBuffer(const char* buf_name, void* local_buf_addr, unsigned int buf_byte_size);

   unsigned int GetGLBuffer(const char* buf_name);


private:
   GLBufferManager(void);
   ~GLBufferManager(void);
   

private:
   static GLBufferManager* _mSingleton;
   std::map<std::string, unsigned int> _mBufferMap;

};

#endif //GL_BUFFER_MANAGER_H
